const baseUrl="https://zhangchaowei.cn";
//获取站点
export const api_getSites = function(data) {
	return new Promise((resolve, reject) => {
		uni.request({
			url: baseUrl+'/api/transit/getSites', //仅为示例，并非真实接口地址。
			data,
			success: (res) => {
				resolve(res.data);
			},
			fail: () => {
				reject()
			}
		});
	});
}
//获取站点
export const api_getLineList1 = function(data) {
	return new Promise((resolve, reject) => {
		uni.request({
			url: baseUrl+'/api/transit/getLineList1', //仅为示例，并非真实接口地址。
			data,
			success: (res) => {
				resolve(res.data);
			},
			fail: () => {
				reject()
			}
		});
	});
}
//获取站点
export const api_getLineList2 = function(data) {
	return new Promise((resolve, reject) => {
		uni.request({
			url: baseUrl+'/api/transit/getLineList2', //仅为示例，并非真实接口地址。
			data,
			success: (res) => {
				resolve(res.data);
			},
			fail: () => {
				reject()
			}
		});
	});
}
//获取站点
export const api_getBusSite = function(data) {
	return new Promise((resolve, reject) => {
		uni.request({
			url:baseUrl+'/api/transit/getBusSite', //仅为示例，并非真实接口地址。
			data,
			success: (res) => {
				resolve(res.data);
			},
			fail: () => {
				reject()
			}
		});
	});
}
//获取站点
export const api_getContentlist = function(data) {
	return new Promise((resolve, reject) => {
		uni.request({
			url: baseUrl+'/api/transit/getContentlist', //仅为示例，并非真实接口地址。
			data,
			success: (res) => {
				resolve(res.data);
			},
			fail: () => {
				reject()
			}
		});
	});
}
//获取站点
export const api_getLine = function(data) {
	return new Promise((resolve, reject) => {
		uni.request({
			url: baseUrl+'/api/transit/getLine', //仅为示例，并非真实接口地址。
			data,
			success: (res) => {
				resolve(res.data);
			},
			fail: () => {
				reject()
			}
		});
	});
}
